﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;

namespace _1
{
    class Crawler
    {
        public string url;
        public string html;

        public void Crawl()
        {
            try
            {
                WebClient webClient = new WebClient();
                webClient.Encoding = Encoding.UTF8;
                html = webClient.DownloadString(url);
            }
            catch (Exception ex)
            {
                html = ex.Message;
                Console.WriteLine(ex.Message);
            }
        }

    }
}
